

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Class Diagram [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Class Diagram,Class Diagram Description,Class Diagram Example,Class Diagram Elements And Connectors,Logical Diagram,Logical Diagram Class Diagram,Diagram,Diagram Class,Diagram Logical">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Class Diagram</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="packagediagram.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="objectdiagram.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">The</span><span class="f_BodyText"> </span><span class="f_BodyText" style="font-style: italic;">Class</span><span class="f_BodyText"> diagram captures the logical structure of the system: the <a href="class.htm">Classes</a> - including <a href="activeclasses.htm">Active</a> and <a href="parameterisedclassestemplate.htm">Parameterized</a> (template) Classes - and things that make up the model. It is a static model, describing what exists and what attributes and behavior it has, rather than how something is done. Class diagrams are most useful to illustrate relationships between Classes and Interfaces. Generalizations, Aggregations and Associations are all valuable in reflecting inheritance, composition or usage, and connections, respectively.</span></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Example Diagram</span></p>
<p class="p_BodyText"><span class="f_BodyText">The pale <a href="aggregate.htm">Aggregation</a> relationship indicates that the Class </span><span class="f_BodyText" style="font-style: italic;">Account</span><span class="f_BodyText"> uses </span><span class="f_BodyText" style="font-style: italic;">AddressBook</span><span class="f_BodyText">, but does not necessarily contain </span><span class="f_BodyText" style="font-style: italic;">AddressBook</span><span class="f_BodyText">. The dark <a href="aggregate.htm">Composite Aggregation</a> connectors indicate ownership or containment by the target Classes (at the diamond end) of the source Classes.</span></p>
<p class="p_TextIndentedL2"><img src="example%20of%20a%20class%20diagram.png" width="651" height="452" border="0" alt="Example of a Class Diagram"></p>
<p class="p_SubHeadingL1"><span class="f_SubHeadingL1">Toolbox Elements and Connectors</span></p>
<p class="p_BodyText"><span class="f_BodyText">Select Class diagram elements and connectors from the </span><span class="f_UIControl"><a href="structuralgroup.htm">Class</a></span><span class="f_BodyText"><a href="structuralgroup.htm"> pages</a> of the Enterprise Architect UML</span><span class="f_UIControl"> Toolbox</span><span class="f_BodyText" style="font-style: italic;">.</span></p>
<p class="p_BodyText"><span class="f_BodyText">Enterprise Architect also supports a number of <a href="business_interaction.htm">stereotyped Class</a> elements to represent various entities in web page modeling.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="955" bgcolor="#efeff7" style="width:955px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Tip:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="955" bgcolor="#f7f7ff" style="width:955px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">Click on the following elements and connectors for more information.</span></p>
</td>
</tr>
</table>
</div>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" bgcolor="#e3e6ed" style="width:198px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Class Diagram Elements</span></p>
</td>
<td valign="top" width="210" bgcolor="#e3e6ed" style="width:210px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Class Diagram Connectors</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="package.htm"><img src="e_package.png" width="167" height="26" border="0" alt="e_Package"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="associate.htm"><img src="c_associate.png" width="168" height="24" border="0" alt="c_Associate"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="class.htm"><img src="e_class.png" width="168" height="23" border="0" alt="e_Class"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="generalize.htm"><img src="c_generalize.png" width="167" height="23" border="0" alt="c_Generalize"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="interface.htm"><img src="e_interface.png" width="168" height="24" border="0" alt="e_Interface"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="compose.htm"><img src="c_compose.png" width="169" height="23" border="0" alt="c_Compose"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="table.htm"><img src="e_table.png" width="170" height="24" border="0" alt="e_Table"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="aggregate.htm"><img src="c_aggregate.png" width="168" height="24" border="0" alt="c_Aggregate"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="enumeration_element.htm"><img src="e_enumeration.png" width="167" height="25" border="0" alt="e_enumeration"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="associationclass.htm"><img src="c_associationclass.png" width="168" height="23" border="0" alt="c_AssociationClass"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="signal_element.htm"><img src="e_signal.png" width="168" height="23" border="0" alt="e_signal"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="assembly.htm"><img src="c_assembly.png" width="167" height="19" border="0" alt="c_Assembly"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="n_aryassociation.htm"><img src="c_association.png" width="168" height="24" border="0" alt="c_Association"></a></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="realise.htm"><img src="c_realize.png" width="168" height="22" border="0" alt="c_Realize"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="nesting.htm"><img src="c_nesting.png" width="169" height="22" border="0" alt="c_Nesting"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="pkgmerge.htm"><img src="c_pkgmerge.png" width="168" height="22" border="0" alt="c_PkgMerge"></a></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="198" style="width:198px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">&nbsp;</span></p>
</td>
<td valign="top" width="210" style="width:210px; border: solid 1px #000000;"><p class="p_Tabletext"><a href="pkgimport.htm"><img src="c_pkgimport.png" width="168" height="26" border="0" alt="c_PkgImport"></a></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
